#include "station.h"

station::station()
{
    remained=10;      //初始化车票数
}

void station::setdistance(double d)
{
    distance=d;
}

void station::setsname(QString sn)
{
    sname = sn;
}

QString station::getsname(){
    return sname;
}

int station::getremained()
{
    return remained;
}

void station::numoticket()   //买票后该站票数-1
{
    remained--;
}
void station::add_ticket()
{
    remained++;
}

int station::get_distance()
{
    return distance;
}



